home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / emmcache.zip / EMC110.DOC < prev    next >
Text File  |  1987-08-03  |  16KB  |  331 lines

  1.  
  2.  
  3.                             EXPANDED MEMORY DISK CACHE 1.10
  4.  
  5.  
  6.  
  7.   1. Introduction.
  8.  
  9.        EMC110.COM is a program designed to cache IBM-XT/AT hard disks in LIM
  10.   (Lotus-Intel-Microsoft) expanded memory; it will not cache floppies, nor will
  11.   it cache in DOS memory or AT extended memory.  It should work with any system
  12.   which has a LIM-spec expanded memory board and software, a disk system which is
  13.   IBM-XT/AT-compatible at the ROM-BIOS level, and NO OTHER STORAGE DEVICES.  If
  14.   your system does not clearly fit this description --- in particular, if you
  15.   have a hard disk system which exceeds the 32-meg DOS limit, or if you have any
  16.   removable-media storage devices other than standard floppies --- you should NOT
  17.   use this program without first reading the 'Technical Notes' section below.
  18.  
  19.  
  20.   2. Installing the Cache.
  21.  
  22.        The cache can be installed by typing
  23.  
  24.                                 EMC110 [max [min]]
  25.  
  26.   at the DOS prompt, where the optional parameters 'max' and 'min' are the
  27.   maximum and minimum number of expanded memory pages you wish to use for the
  28.   cache (each page is 16K).  If 'max' is not specified it defaults to 512.  The
  29.   point of specifying 'max' is to prevent the cache from consuming all available
  30.   expanded memory.  If 'min' is not specified it defaults to 1.  The point of
  31.   specifying 'min' is to prevent the installation of a cache which is too small
  32.   to be effective.  Note that the parameters are positional: if you want to
  33.   specify 'min', you must specify 'max' first.
  34.  
  35.        If at least 'min' pages of expanded memory are available, EMC110 installs
  36.   itself as a resident program which, subject to the constraint of 'max', uses as
  37.   much expanded memory as possible and up to 64K of DOS memory.  Specifically,
  38.   the program requires approximately 3K plus 128 bytes per expanded memory page
  39.   used.  Thus a 1-meg cache uses about 11K of DOS memory and, if you have enough
  40.   expanded memory, a cache of nearly 8 meg should be possible.
  41.  
  42.  
  43.   3. Changing the Cache Size.
  44.  
  45.        If EMC110 is already installed, the cache size can be dynamically changed
  46.   by typing
  47.  
  48.                                 EMC110 [max [min]]
  49.  
  50.   at the DOS prompt, where 'max' and 'min' have the same significance as for the
  51.   initial installation.  The result is that the cache is purged, all expanded
  52.   memory being used by the cache is released, a new allocation of expanded memory
  53.   of the appropriate size is obtained, and the cache is reinitialized.  Since no
  54.   reallocation of DOS memory or manipulation of interrupts is involved, the cache
  55.   can be resized under circumstances which would not permit removing it and
  56.   reinstalling it.  However, since the cache retains its original allocation of
  57.   DOS memory, this imposes an additional constraint on the maximum cache size in
  58.   addition to 'max' and the amount of expanded memory available: the new size can
  59.   never exceed the size of the original installation.
  60.  
  61.  
  62.  
  63.  
  64.                                      Page 1 of 5
  65.  
  66.  
  67.  
  68.  
  69.                             EXPANDED MEMORY DISK CACHE 1.10
  70.  
  71.  
  72.   4. Disabling the Cache.
  73.  
  74.        If EMC110 is installed, it can be disabled by typing
  75.  
  76.                                      EMC110 X
  77.  
  78.   at the DOS prompt.  The result is that the cache is purged, all expanded memory
  79.   being used by the cache is released, and subsequent BIOS disk interrupts are
  80.   immediately passed on to the prior interrupt handler.  However, the cache
  81.   maintains its allocation of DOS memory and its position in the BIOS disk
  82.   interrupt chain, so it can be reactivated as described under 'Changing the
  83.   Cache Size' above.
  84.  
  85.  
  86.   5. Uninstalling the Cache.
  87.  
  88.        If EMC110 is installed, it may be possible to uninstall it (i.e., remove
  89.   it from memory entirely) by typing
  90.  
  91.                                      EMC110 XX
  92.   or
  93.                                      EMC110 XXX
  94.  
  95.   at the DOS prompt.  The 'XX' variant will complete the uninstallation only if
  96.   it can be done without fragmenting DOS memory.  The 'XXX' variant will complete
  97.   the uninstallation whenever possible.  If EMC110 was not the last program to
  98.   insert itself in the BIOS disk interrupt chain, then the uninstallation will
  99.   not be possible.  If the uninstallation is not completed, then the cache will
  100.   be left in the disabled state.
  101.  
  102.  
  103.   6. Querying the Cache.
  104.  
  105.        The status of the cache can be determined by typing
  106.  
  107.                                      EMC110 ?
  108.  
  109.   at the DOS prompt.  The result, in addition to an identifying banner, will be
  110.   the display of either
  111.  
  112.                                 Cache not installed
  113.   or
  114.                              xx page cache installed.
  115.  
  116.   If the cache is installed, but has been disabled or resized to less than its
  117.   original installed size, then either
  118.  
  119.                                  Cache is disabled
  120.   or
  121.                               xx page cache is active
  122.  
  123.   will also be displayed.  In addition, if any disk read, disk write, or expanded
  124.   memory errors have occurred, further lines will be displayed detailing these
  125.   errors.  Note that the error counts are not reset by resizing or disabling the
  126.   cache.  Moreover, only errors which arise from disk or expanded memory requests
  127.   issued by the cache itself are counted.
  128.  
  129.  
  130.                                      Page 2 of 5
  131.  
  132.  
  133.  
  134.  
  135.                             EXPANDED MEMORY DISK CACHE 1.10
  136.  
  137.  
  138.  
  139.        The display described above is also produced by all other calls to EMC110
  140.   which don't result in removing the cache from memory entirely.  The difference
  141.   is that, whereas the other calls result in the cache's being reinitialized, the
  142.   '?' variant leaves the cache intact.
  143.  
  144.  
  145.   7. Compatibility with Resident Program Managers.
  146.  
  147.        EMC110 should not be used with any program which claims to be able to
  148.   suspend and later reactivate resident programs.  All disk caches work by
  149.   keeping copies of disk sectors in memory.  If a cache is suspended and later
  150.   reactivated by another program, the cache has no way of knowing that its
  151.   contents may no longer be correct.  The results could be disastrous.
  152.  
  153.        EMC110 may also be incompatible with programs which merely uninstall
  154.   resident programs.  Such programs presumably work by recording the computer's
  155.   state before a resident program is installed, and restore that state when
  156.   uninstalling it.  If you use such a program to uninstall EMC110, or if you
  157.   never use EMC110 to resize, disable or uninstall itself, this technique should
  158.   work.  But consider the following scenario: first you install EMC110, then you
  159.   install resident program 'A', then you disable EMC110, then you install
  160.   resident program 'B' which allocates some expanded memory, then you reactivate
  161.   EMC110.  At this point the expanded memory owned by EMC110 is probably not the
  162.   same as it was when 'A' was installed, so simply removing 'A' and 'B' from
  163.   memory and restoring the computer's state to what it was when 'A' was installed
  164.   will not work.  Admittedly this scenario is unlikely, and some resident program
  165.   managers may even be clever enough to cope with it, but the integrity of your
  166.   hard disk is at stake.  If want to use both EMC110 and a resident program
  167.   manager, the safe way is never to use EMC110 to resize, disable or uninstall
  168.   itself.
  169.  
  170.  
  171.   8. Compatibility with Multitasking Programs.
  172.  
  173.        EMC110 doesn't work with DoubleDOS 4.0.  It does appear to work with both
  174.   Microsoft Windows 1.03 and Desqview 1.3 and 2.0.  In fact the resize and
  175.   disable features work in a Desqview window.  But note that EMC110 must be
  176.   installed BEFORE you invoke Windows or Desqview; you should NEVER install
  177.   EMC110 in a window.
  178.  
  179.  
  180.   9. Operational Notes.
  181.  
  182.        EMC110 is a pure write-through cache.  Both reads and writes are cached in
  183.   the sense that, whenever an actual disk read or write occurs, copies of the
  184.   sectors involved are placed in the cache.  But whereas read requests are
  185.   serviced from the cache contents rather than the disk whenever possible, write
  186.   requests are